#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

#include "teacher.h"
#include "student.h"

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

    void EmitSignal();

private slots:
    void on_pushButton_clicked();

    void on_pushButton1_clicked();

private:
    Ui::Widget *ui;
    Teacher* tch; // 发送信号对象
    Student* stu; // 接受信号对象

};
#endif // WIDGET_H
